package org.autumn.singleton;

/**
 * HungrySingleton
 * Object is created only once
 * Instantiate the object when loading the class
 */
public class HungrySingleton {
    private static HungrySingleton INSTANCE = new HungrySingleton();

    private HungrySingleton(){
        // prevent instantiate
    }

    public static HungrySingleton getInstance() {
        return INSTANCE;
    }
}
